﻿@model Infinity.Models.Lab

@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Managerial/Views/Shared/_AdminLayout.cshtml";
}

<h2>Edit</h2>

@using (Html.BeginForm("Delete", "Lab", new { id=Model.LabID}))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Lab</legend>
        <span class="input input--jiro">
                <label class="" for="input-10" style="color:gray">
                    <span class="input__label-content input__label-content--jiro">
                        &nbsp;&nbsp; @Html.HiddenFor(model => model.LabID)
                        Lab ID
                        &nbsp;&nbsp;&nbsp;
                        @Model.LabID
                    </span>
                </label>
            </span>
            <br />
          <span class="input input--jiro">
                <input class="input__field input__field--jiro" type="text" value="@Model.Lab_Name" name="Lab_Name" id="Lab_Name" />
                <label class="input__label input__label--jiro " for="input-10">
                    <span class="input__label-content input__label-content--jiro">
                        Lab Name
                        <span class="star">@Html.ValidationMessageFor(model => model.Lab_Name, "*")</span>
                    </span>
                </label>
            </span>
         <br />
            <span class="input input--jiro">
           @Html.LabelFor(model => model.branchID, "Branch Name")
              @Html.DropDownList("branchID", null, string.Empty, new { @class = "input__label-content input__label-content--jiro" })
                       

              <span class="star"> @Html.ValidationMessageFor(model => model.branchID, "*")</span>
                </span>
        
         <p>

            @Html.ValidationSummary(false, "Please fix the errors then submit ")
        </p>
          <div>
    <table>
  <tr>
@*      <td>@Html.ActionLink("Delete", "Delete", new { id = Model.LabID }, new { @class = "send" })</td>*@
      <td>
                       <input type="submit" value="Delete" class="send" onclick="return confirm('Are you sure you  want to delete This')"; />

      </td>
      <td>&nbsp;&nbsp;<a href="@Url.Action("Index", "Lab")" class="send">BacK to list</a></td>

      <td>&nbsp;&nbsp;<a href="@Url.Action("Create", "Lab")" class="send">Create New Lab</a></td>
      <td> &nbsp;&nbsp;  <input type="submit"  value="Save" class="send" /></td>

  </tr> 
</table>
</div>

    </fieldset>
    
}



